package cn.lijigou.shopping.domain;

public class API {
	public static String market = "umeng_test";
	private static String host = "api.lookoo.cn";
	private static String appkey = "3cD8lkLyhla083geDdc";
	private static String mVersion = "1.2.3";

	public static String open = "tuanapi/open";// 统计
	public static String search_shop = "tuanapi/search_tuan";// 搜索团购
	public static String user_location = "tuanapi/user_location";// 统计定位
	public static String coupon_list = "tuanapi/coupon_list";// 周围团购
	public static String today_coupon = "tuanapi/today_coupon";// 今日团购
	public static String hot_partner = "tuanapi/hot_partner";// 热门团购
	public static String my_order = "tuanapi/my_order";// 我的订单
	public static String first_pay = "tuanapi/new_order";// 首次支付
	public static String agian_pay = "tuanapi/buy_again";// 重复支付
	public static String shop_detail = "tuanapi/getcoupon";// 获得优惠券团购详情
	public static String propose = "tuanapi/suggest";// 提交建议
	public static String phone_log = "tuanapi/phone_log";// 提交日志
	public static String login = "tuanapi/login";// 登录
	public static String register = "tuanapi/register";// 登录
	public static String version = "tuanapi/chk_version";// 手动检查升级
	public static String cancel_order = "tuanapi/cancel_order";// 取消订单
	public static String confirm_coupon_code = "tuanapi/chk_coupon_code";// 验证优惠码
	public static String hot_place = "tuanapi/get_area";// 商圈
	public static String cps = "tuanapi/real_buy";// cps状态
	public static String advertising = "tuanapi/adv";// 获取广告
	
	public static String push = "tuanapi/push_message";// 获取推送
	public static String geo_offset = "mapi/geo_offset";// 纠偏
	public static String hot_city = "tuanapi/hotcity";// 热门城市
	public static String hot_keyword = "tuanapi/top_keyword";// 热门关键词
	public static String weibo_login = "tuanapi/weibo_login";// 微博登录|注册

	public static String shareQQ = "http://sw.lookoo.cn/mobile/post_qq_topics";// 分享接口
	public static String shareSina = "http://sw.lookoo.cn/mobile/post_sina_topics";// 分享接口
	public static String FAQ = "http://api.lookoo.cn/tuanapi/question/appkey=3cD8lkLyhla083geDdc";// FAQ
	public static String first_card_pay = "http://alipay.lookoo.cn/wap/alipaychannel.php?appkey=3cD8lkLyhla083geDdc&v=tuan1.2.2&go="
			+ market;// 银行卡首次支付
	public static String agian_card_pay = "http://alipay.lookoo.cn/wap/alipaychannel.php?appkey=3cD8lkLyhla083geDdc&v=tuan1.2.2&go="
			+ market;// 银行卡重复支付

	public static String getAPI(String action) {
		return "http://" + host + "/" + action + "?appkey=" + appkey + "&go="
				+ market + "&v=" + mVersion;
	}

	public static String getAPIHost(String action) {
		return action + "?appkey=" + appkey + "&go=" + market + "&v="
				+ mVersion;
	}
}
